package cn.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/7/26 21:40
 */
@Configuration
// 扫描包，排除controller
@ComponentScan(basePackages = "cn", excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION
        , value = Controller.class)})
public class ApplicationConfig {
    // 相当于applicationContext.xml

    //在此配置除了Controller的其它bean，比如：数据库连接池、事务管理器、业务bean等。
}
